]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensions-app: Fix Logout call
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 2 May 2020 21:32:04 +0000 (23:32 +0200)
committerverdre <jonas@dressler.it>
Thu, 7 May 2020 15:58:06 +0000 (15:58 +0000)
Commit 764527c8c9b adjusted the "call" call to promisification that
never happened (in this bit of code).

We can either add back a callback or properly promisify the call;
this opts for the latter.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2735

subprojects/extensions-app/js/main.js

index 382637c74202fb06df2bc91dec6f124e8740b33b..005d1ddc65c083474b22cdade041d6f2f84ce505 100644 (file)
@@ -15,6 +15,7 @@ const { ExtensionState, ExtensionType } = ExtensionUtils;
 const GnomeShellIface = loadInterfaceXML('org.gnome.Shell.Extensions');
 const GnomeShellProxy = Gio.DBusProxy.makeProxyWrapper(GnomeShellIface);
 
+Gio._promisify(Gio.DBusConnection.prototype, 'call', 'call_finish');
 Gio._promisify(Shew.WindowExporter.prototype, 'export', 'export_finish');
 
 function loadInterfaceXML(iface) {